package com.shsun.curveservice.domain.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (Task)表实体类
 *
 * @author shsun
 * @since 2024-06-11 05:32:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Task extends Model<Task> {

    private Long id;

    private String taskName;

    private String taskContent;

    private Long ruleId;

    private String ruleStatus;
    private LocalDateTime endDate;
    //逻辑删除标志，0为未删除，1为已删除
    private Integer isDeleted;
    //创建时间
    private LocalDateTime createdTime;
    //修改时间
    private LocalDateTime updatedTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

